﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IceDog.Lib.IceDogSchool
{
    public class Teacher : IPeople
    {
        public string Name { get; set; }
        public int Age { get; set; }
        public void Eat()
        {
            Console.WriteLine(this.ToString() + "eat");
        }

        public void Sleep()
        {
            Console.WriteLine(this.ToString() + "sleep");
        }
        public override string ToString()
        {
            return $"teacher,name:{this.Name},age:{this.Age}>>";
        }
    }
}
